package com.droidwatcher.JsonEntity;

import com.alibaba.fastjson.annotation.JSONField;
import com.droidwatcher.lib.BrowserHistory;
import com.droidwatcher.lib.IMessageBody;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2018/1/30.
 */

public class BrowserJsonObj extends JsonBaseObj {
    @JSONField(name = "data")
    Data data ;

    public Data getData() {
        return data;
    }

    public void setData(Data data) {
        this.data = data;
    }

    public static class Data{
        @JSONField(name = "browser_record")
        List<BrowserHistory> browserHistories  = new ArrayList<>();

        public List<BrowserHistory> getBrowserHistories() {
            return browserHistories;
        }

        public void setBrowserHistories(List<IMessageBody> browserHistories) {
            for (int i = 0; i < browserHistories.size(); i++) {
                BrowserHistory call = (BrowserHistory) browserHistories.get(i);
                this.browserHistories.add(call);
            }
        }

//
//        public void setContactArrayList(List<IMessageBody> contactArrayList) {
//            for (int i = 0; i < contactArrayList.size(); i++) {
//                Call call = (Call) contactArrayList.get(i);
//                this.contactArrayList.add(call);
//            }
//        }
    }




}
